package arrays;

public class arrays_4 {
    public static void main (String [] args ){

        double sum = 0 ;
        int intarrays[] = new int[]{ 2, 9, 7 ,16 ,68};

        for (int i = 0; i < intarrays.length; i++) {
            sum += intarrays[i] ;
        }

            System.out.println( "平均值为" + sum / intarrays.length );


    }
}
